﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Option : MonoBehaviour {
    public Toggle m_Toggle;
    public Dropdown m_ScoreDropDown;
    public Text m_OptionContentText;
    public InputField m_JumpIDInput;
    public bool m_IsCorrect;
    public int m_Score;
    public int m_JumpID;
	
    public void OnChooseScore(int value) {
        m_Score = value;
    }
    public void OnChooseToggle(bool isOn) {
        m_IsCorrect = isOn;
    }
    public void SetToggleState(int isOn) {
        if(isOn == 1) {
            m_Toggle.isOn = true;
        } else {
            m_Toggle.isOn = false;
        }
    }
    public void SetScore(int score) {
        m_ScoreDropDown.value = score;
        m_Score = score;
    }
    public void OnJumpIDChange() {
        m_JumpID = int.Parse(m_JumpIDInput.text);
    }
}
